<!DOCTYPE html>
<html>
    <body>
        <script>
        cars=["bmw","volvo","saab","food"];
        for (var i=0, l=cars.length; i<l; i++){
            document.write (cars[i]+"<br>");
        }
        </script>
    </body>
</html>